# -*- coding: utf-8 -*-
from application import app, db
from flask import Blueprint
from common.libs.Helper import ops_render
from common.libs.Helper import getFormatDate
import datetime

route_index = Blueprint('index_page', __name__)


@route_index.route("/")
def main():
    resp_data = {}
    return ops_render("/admin/main.html", resp_data)


@route_index.route("/layout.go")
def layout():
    resp_data = {}
    return ops_render("/admin/layout.html", resp_data)


@route_index.route("/index.go")
def index():
    resp_data = {}

    return ops_render("/admin/index.html", resp_data)

# 以下测试模块
@route_index.route("/chart/index.go")
def index1():
    return ops_render("/demo/chart/index.html")
@route_index.route("/detail/edit-article.go")
def index2():
    return ops_render("/demo/detail/edit-article.html")
@route_index.route("/detail/plan.go")
def index3():
    return ops_render("/demo/detail/plan.html")
@route_index.route("/exception/403.go")
def index4():
    return ops_render("/admin/exception/403.html")
@route_index.route("/exception/404.go")
def index5():
    return ops_render("/admin/exception/404.html")
@route_index.route("/exception/500.go")
def index6():
    return ops_render("/admin/exception/500.html")
@route_index.route("/form/basic.go")
def index7():
    return ops_render("/demo/form/basic.html")
@route_index.route("/form/group.go")
def index70():
    return ops_render("/demo/form/group.html")
@route_index.route("/icon/index.go")
def index8():
    return ops_render("/demo/icon/index.html")
@route_index.route("/list/card.go")
def index9():
    return ops_render("/demo/list/card.html")
@route_index.route("/list/table.go")
def index10():
    return ops_render("/demo/list/table.html")
@route_index.route("/module/admin.go")
def index11():
    return ops_render("/demo/module/admin.html")
@route_index.route("/module/helper.go")
def index12():
    return ops_render("/demo/module/helper.html")
@route_index.route("/module/loadbar.go")
def index13():
    return ops_render("/demo/module/loadbar.html")
@route_index.route("/popup/phone.go")
def index14():
    return ops_render("/demo/popup/phone.html")
@route_index.route("/table/editcheck.go")
def index15():
    return ops_render("/demo/table/editcheck.html")
@route_index.route("/test/test.go")
def index16():
    return ops_render("/demo/test/test.html")
